@echo off
echo Checking development environment...

if exist ".env" (
  for /F "tokens=*" %%i in (.env) do (
    echo %%i | findstr /v /b "#" > nul && set "%%i"
  )
) else (
  echo Error: .env file not found!
  echo Please create .env file with VS paths
  exit /b 1
)

call "%VC2019DEVC%"

cmake --version >nul 2>&1
if %errorlevel% == 0 (
  echo # CMake is installed
  cmake --version | findstr /B "cmake version"
  where cmake 2>nul
) else (
  echo # CMake is not installed or not in PATH
)

nmake /? >nul 2>&1
if %errorlevel% == 0 (
  echo # NMake is installed
  nmake /? | findstr /B "Microsoft"
  where nmake 2>nul
) else (
  echo # NMake is not installed or not in PATH
)
